package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 用户每日学习
 */
@Data
@Document(collection = "user_daily_learning")
public class UserDailyLearning extends EntityBase {
    private String activityId;
    private String activityName;
    private String taskId;
    private String dailyLearningId;
    private String userId;
    /**
     * 0：未完成,1:完成,2:待定
     */
    private Integer status;
    /**
     * 完成时间
     */
    private Date doneTime;
    /**
     * 签到日期
     */
    @Indexed
    private Date dayTime;
    @Transient
    private DailyLearning dailyLearning;
    @Transient
    private String tips;

    /**
     * 头部文案
     */
    @Transient
    private String headerTips;
    @Transient
    private String headerSubTips;
    /**
     * 0 时，headerTips + headerSubTips
     * 1时，headerTips 和 headerSubTips分开显示
     */
    @Transient
    private Integer layoutNo = 0;
    @Transient
    private Integer point = 0;

    /**
     * 澳门活动用到
     */
    @Transient
    private String redirectUriCoupon;
}
